package com.fg.cloud.manager.service.delivery.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.fg.cloud.manager.entry.BaseEntity;
import com.fg.cloud.manager.mapper.BaseMapper;
import com.fg.cloud.manager.mapper.delivery.DeliveryDetailMapper;
import com.fg.cloud.manager.service.BaseServiceImpl;
import com.fg.cloud.manager.service.delivery.DeliveryDetailService;

/**
 * @author ：
 * @date ： 2017年6月27日 上午8:49:06
 * @Desc ：发货单清单service
 */
@Service
public class DeliveryDetailServiceImpl extends BaseServiceImpl implements DeliveryDetailService {

	@Autowired
	private DeliveryDetailMapper deliveryDetailMapper;

	@Override
	protected <T extends BaseEntity> BaseMapper getBaseMapper() {
		return deliveryDetailMapper;
	}

	@Override
	public boolean delByFacId(Long facId) {	
		return deliveryDetailMapper.delByFacId(facId) > 0 ? true : false;
	}

}
